package com.hps.elk.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @author hepengshuai
 * @date 2019/11/25 21:28
 */
@FeignClient(name = "order-service")
@Component
public interface OrderClient {

    @GetMapping("/api/orders/{id}")
    ResponseEntity<Map<String, Object>> findOrder(@PathVariable("id") Long id);
}
